<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <title>添加学生</title>
    <link rel="stylesheet" href="../public/hui/css/hui.css">
    <style>
        .hui-wrap{
            margin-top: 20px;
        }
        .add_class_box{
            margin-top: 10px;
            padding: 10px;
        }
        .select_upload_box{
            margin-top: 10px;
        }
        #select_upload,#select_add{
            color: blue;
        }
    </style>
</head>
<body>
<header class="hui-header">
    <div id="hui-back"></div>
    <h1>添加学生</h1>
    <div id="hui-header-menu"></div>
</header>
<div class="hui-wrap">
    <form class="hui-form" id="add_stu_form">
        <div class="hui-form-items">
            <div class="hui-form-items-title">班级</div>
            <div class="hui-form-select">
                <select name="add_class_num" class="add_class_num">
                </select>
            </div>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">学号:</div>
            <input type="number" class="hui-input" placeholder="请输入学号"name="stu_num">
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title" >姓名:</div>
            <input type="text" class="hui-input" placeholder="请输入姓名"name="stu_name">
        </div>
        <div class="add_class_box">
            <button class="hui-button hui-primary hui-button-large" id="add_stu">添加学生</button>
            <div class="select_upload_box">
                或 <a id="select_upload">上传学生名单</a>
            </div>
        </div>
    </form>

    <form class="hui-form" id="upload_list_form">
        <div class="hui-form-items">
            <div class="hui-form-items-title">班级</div>
            <div class="hui-form-select">
                <select name="upload_class_num" class="upload_class_num">
                </select>
            </div>
        </div>
        <div class="hui-form-items">
            <div class="hui-form-items-title">学生名单:</div>
            <input type="file" id="name_list" value="上传名单" name="name_list">
            <p id="file_name"></p>
        </div>
        <div class="add_class_box">
            <button class="hui-button hui-primary hui-button-large" id="upload">添加学生</button>
            <div class="select_upload_box">
                或 <a id="select_add">直接添加学生</a>
            </div>
        </div>
    </form>
</div>
</body>
<script src="../public/js/jquery-3.3.1.min.js"></script>
<script src="../public/hui/js/hui.js"></script>
<script src="js/menu.js"></script>
<script src="../public/hui/js/hui-form.js"></script>
<script src="js/islogin.js"></script>
<script src="js/add_stu.js"></script>
</html>